<template>
  <h3>子组件{{money}}</h3>

  <sun></sun>
</template>

<script>
import sun from './sun.vue'
import {inject} from 'vue'
export default {
    components:{
        sun
    },
    setup(){

        const money = inject('money')


        return {money}
    }
}
</script>

<style>

</style>